/*
 * CliCuentaCorriente.java
 *
 * Created on 9 de julio de 2007, 11:36
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Cliente;
import Interfaces.servLegajoInterface;

/**
 *
 * @author EPSGRAU
 */
public class CliLegajo extends ClienteRMI{    
    /** Creates a new instance of CliCuentaCorriente */    
    
    public CliLegajo( String rmiHost, String port, String service ) {                
        super( rmiHost, port, service );        
    }
    
    public servLegajoInterface getObjeto(){
        servLegajoInterface ServRem = null;
        try{
            ServRem = ( servLegajoInterface ) java.rmi.Naming.lookup( "//" + this.getRmiHost() + 
                        ":" + this.getPort() + "/" + this.getService() );
        }catch( Exception er ){
            System.out.println( "Se produjo un error en la llamada" +er.getMessage());
            er.printStackTrace();            
        }
        return ServRem;
    }
}
